package com.imti.mall.order.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.imti.mall.model.sms.pojo.SmsFlashPromotionSession;
import com.imti.mall.order.mapper.FlashPromotionSessionMapper;
import com.imti.mall.order.service.FlashPromotionSessionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class FlashPromotionSessionServiceImpl extends ServiceImpl<FlashPromotionSessionMapper, SmsFlashPromotionSession> implements FlashPromotionSessionService {

    @Autowired
    private FlashPromotionSessionMapper flashPromotionSessionMapper;

    @Override
    public SmsFlashPromotionSession flashPromotionSession(Long id) {
        return getById(id);
    }

    @Override
    public int closeStatusByIdTrue(Long id) {
        return flashPromotionSessionMapper.closeStatusByIdTrue(id);
    }
}
